package com.pzb.goods.mapper;

import com.pzb.goods.domain.GdGoods;
import com.pzb.goods.domain.GdGoodsUnits;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 规格属性Mapper接口
 * 
 * @author Mr_Wu
 * @date 2021-11-30
 */
public interface GdGoodsUnitsMapper 
{

    /**
     * 查询规格属性列表
     * 
     * @param  goodsId 商品id
     * @return 规格属性集合
     */
    public List<GdGoodsUnits> selectGdGoodsUnitsList(Long goodsId);

    public GdGoodsUnits selectGoodsUnitsById(Long id);

    public GdGoodsUnits selectGoodsUnitsByGoodsIdAndUnits(@Param("goodsId") Long goodsId, @Param("goodsUnit")String goodsUnit);

    /**
     * 修改规格属性
     *
     * @param gdGoodsUnits 规格属性
     * @return 结果
     */
    public int updateGdGoodsUnits(GdGoodsUnits gdGoodsUnits);
}
